<template>
    <view class="content">
		<view class="con_header">
			<view class="header_title">质检解冻</view>
			<view class="header_line"></view>
			<view class="header_line_top"></view>
		</view>
		<view class="con_conter">
			<view class="uni-form-item uni-row" style="text-align: center;">
				<radio-group @change="radioChange">
					<label class="radio"><radio value="r1" checked="true" />冻结</label>
					<label class="radio"><radio value="r2" />解冻</label>
				</radio-group>
			</view>
			
			<view class="uni-form-item uni-row">
                <view class="title weight">条码编号：</view>
                <input class="my_input" type="number" v-model="form.UPCBarCode" placeholder="请输入条码编号" />
            </view>
			<view class="uni-form-item uni-row">
			    <view class="title">物料编号：</view>
			    <input class="my_input" type="number" v-model="form.materielCode" placeholder="请输入物料编号" />
			</view>
			<view class="uni-form-item uni-row">
			    <view class="row_title">新一代洗洁精(1KG+300G)*12桶</view>
			</view>
			<view class="uni-form-item uni-row">
			    <view class="title">批次编号：</view>
			    <input class="my_input" type="number" v-model="form.piciCode" placeholder="请输入批次编号" />
			</view>
			<view class="uni-form-item uni-row">
			    <view class="title">数量：</view>
			    <input class="my_input" type="number" v-model="form.number" placeholder="请输入数量" />
			</view>
			<view class="uni-form-item uni-row">
			    <view class="title">库存地：</view>
			    <input class="my_input" type="number" v-model="form.Stockpile" placeholder="请输入库存地" />
			</view>
		</view>
		<view class="con_foot">
			<view class="foot_botton" @tap="confirmationWarehousing">解冻确认</view>
			<view class="foot_botton" @tap="Empty_space">置空</view>
		</view>
    </view>
</template>

<script>
    import {
        mapState
    } from 'vuex'

    export default {
        computed: mapState(['forcedLogin', 'hasLogin', 'userName']),
		data(){
			return{
				form:{
					UPCBarCode:'',//条码编号
					materielCode:'',//物料编号
					piciCode:'',//批次编号
					number:'',//数量
					Stockpile:'',//库存地
				}
			}
		},
        onLoad() {
            
        },
		methods:{
			//置空
			Empty_space(){
				let that=this
				that.form={
					UPCBarCode:'',//条码编号
					materielCode:'',//物料编号
					piciCode:'',//批次编号
					number:'',//数量
					Stockpile:'',//库存地
				}
			},
			//入库确认
			confirmationWarehousing(){
				uni.showModal({
					title: '提示',
					content: '是否确认此次入库？',
					success: function (res) {
						if (res.confirm) {
							console.log('用户点击确定');
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				});
			},
			radioChange(e){
				console.log(e.detail.value)
			}
			
		},
    }
</script>

<style scoped="scoped" lang="scss">
	@import "./../purchase_page/purchase_page.scss";
</style>
